<section class="title">
<?php if ($this->method == 'create'): ?>
	<?php $readonly = '';?>
	<h4><?php echo lang('escort_expense_add_title'); ?></h4>
<?php else: ?>
	<?php $readonly = 'readonly="readonly"';?>
	<h4><?php echo lang('escort_expense_edit_title'); ?></h4>
<?php endif; ?>
</section>

<section class="item">
	
<?php echo form_open(uri_string(), 'class="crud"'); ?>
<div class="form_inputs" id="news-form">

	<fieldset>
	
		<ul>
			<li class="odd">
				<label for="created_date"><?php echo lang('escort_expense_date_label'); ?></label>
				<div class="input">					
					<?php echo form_input('created_date',  format_date($expense->created_date), 'id="created_date"') ?>
				</div>
			</li>
			<li class="even">
				<label for="expiration_date"><?php echo lang('escort_expense_expiration_label'); ?> <span>*</span></label>
				<div class="input">
				<?php echo form_input('expiration_date',format_date($expense->expiration_date), 'id="expiration_date" '); ?>
				</div>				
			</li>
			<li class="odd">
				<label for="paid_date"><?php echo lang('escort_expense_paid_label'); ?></label>
				<div class="input">
					<?php echo form_dropdown('status',$statusList, $expense->status, 'maxlength"10"')?>
					<?php if($expense->paid_date > 0){?>
					<?php echo form_input('paid_date',format_date($expense->paid_date), 'id="paid_date" '); ?>
					<?php }else{?>
					<?php echo form_input('paid_date','', 'id="paid_date" '); ?>
					<?php }?>
				</div>
			</li>
			<li class="even">
				<label for="cost"><?php echo lang('escort_expense_cost_label'); ?></label>
				<div class="input">
					<?php echo form_input('cost', $expense->cost, 'id="cost" '); ?>
				</div>
			</li>
			<li class="even">
				<label for="company"><?php echo lang('escort_expense_company_label'); ?></label>
				<div class="input">
					<?php echo form_input('company', $expense->company, 'id="company" '); ?>
				</div>
			</li>
			<li class="odd">
				<label for="comment"><?php echo lang('escort_expense_comment_label'); ?></label>
				<div class="input">
					<?php echo form_textarea('comment', $expense->comment)?>
				</div>
			</li>
		</ul>
	</fieldset>
</div>
<div class="buttons float-right padding-top">
<?php $this->load->view('admin/partials/buttons', array('buttons' => array('save', 'save_exit', 'cancel'))); ?>
</div>
<?php echo form_close(); ?>
</section>